<div class="pageContent">
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<script type="text/javascript">
function selectalls(name) {
	if ($("#check_box"+name).attr("checked")==false) {
		$("input#ccheck_box"+name).each(function() {
			this.checked=false;
		});
	} else {
		$("input#ccheck_box"+name).each(function() {
			this.checked=true;
		});
	}
}
function selectallss(id,fid) {
	if ($(".check_box"+id).attr("checked")==true)
		{
			$(".check_box"+fid).attr("checked", true);
		}
}
</script>
<form method="post" action="/Admin/index.php/Expand/Authorityssets/role_id/{$role_id}/navTabId/ck13" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<div class="pageFormContent" layoutH="58">

<tr>
<div class="unit"><label>角色名称</label> 
<font color="red">{$name}</font> ; 状态(<if condition="$status eq '1' "> 启用<else/>禁止</if>)  ; 排序：({$sort})
</div>
<volist name="power" id='vpra'>
	<div class="unit"><label><font color="blue">{$vpra.name}</font></label> 
		<volist name="vpra['parent']" id='vprb'>
			<input type="checkbox" name="checkbox[]" value="{$vprb['id']}"  id="check_box{$vprb.id}" onclick="selectalls('{$vprb.id}');" class="check_box{$vprb.id}"   <if condition="$role_powers[$vprb['id']] eq 1">checked</if>/> {$vprb.name} ->
			<volist name="vprb['parent']" id='vprc'>
				- <input type="checkbox" name="checkbox[]" value="{$vprc['id']}" onclick="selectallss('{$vprc.id}','{$vprb.id}');" id="ccheck_box{$vprb.id}" class="check_box{$vprc.id}" <if condition="$role_powers[$vprc['id']] eq 1">checked</if>/> {$vprc.name}
			</volist>
			</div><div class="unit"><label>　</label>
		</volist>
		</div>
</volist>
</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">Submit</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">Cancel</button></div></div></li>
		</ul>
	</div>
</form>

</div>


